Can someone suggest a IDE for Ruby which will make it easier to understand the code flow of the project. I am looking for something similar to intellij remote debugger for JAVA. The debugger should transfer the complete control of the code, so that stepping into and stepping out of the code becomes easier.
Rubymine is a very good IDE by JetBrains, so you should be on famillier grounds if you've worked IntelliJ. Among other things, it has a built in debugger with the functionalities you described.
One major caveat though - it's not free, and there's no community edition like there is for IntelliJ.