p "This is %s" % "foo" # => "This is foo" p "%s %s %s" % ["foo", "bar", "baz"] # => "foo bar baz" p "%{foo} == %{foo}" % {:foo => "foo" } # => "foo == foo"
See String % docs and Kernel::sprintf for more details.
%