Starting a remote program

How can I start a program pro.rb at a remote machine identified by ip in
a LAN?