A try a writing a simple ruby debugger detailed here http://akash.im/2012/05/12/home-made-debugger-in-ruby.html
Akash Manohar J
gem "take-a-look", "~> 0.2"