have you tried:

ruby -r debug 'filename.rb'

Michael