scp -i ./your-key.ssh foo.rb user-name@101.101.101.101:.
Where your-key.ssh and foo.rb are in the directory where you are running scp. Since you have . after : at the end of ip address, the local file foo.rb will get copied to the root directory of your remote machine.