Anyone interested in this may also be interested in TracePoint
https://github.com/rubyworks/tracepoint

-- 
Posted via http://www.ruby-forum.com/.