Ruby Program to add two numbers using command line

Program

a = ARGV[0].to_i
puts "First number: #{a}"
b = ARGV[1].to_i
puts "First number: #{b}"
c = a + b
puts "Sum of #{a} and #{b} is #{c}"

Output

$ ruby add-two-numbers-command-line.rb 31 15
First number: 31
First number: 15
Sum of 31 and 15 is 46