Scripting ruby-debug

Hello everyone,

Really simple question -
Is there a way to script ruby-debug?

What I mean is can, I do something like:

Debugger.commands do
var local
var global

end

?

Thanks,
Ari