Check out example codes for "ruby print". It will help you in understanding the concepts better.
Code Example 1
puts ""
Code Example 2
puts
Code Example 3
puts "hello world"
Code Example 4
puts "string"
p "string"
Learn ReactJs, React Native from akashmittal.com