I recommend using your text editor of choice (mine is Vim) and the command line tools, because I find an IDE unnecessary for these projects, but if you really want an IDE you can use RubyMine(
http://www.jetbrains.com/ruby/), PyCharm(
http://www.jetbrains.com/pycharm/) and the one I would recommend is Komodo (
http://www.activestate.com/komodo-ide).