I don't know how to interface with rails, but interpolating a string with an array is easy. Use %s
for simple string substitution. You can even have finer control by using an appropriate format syntax.
"%s - %s digits" % [10, 100]
# => "10 - 100 digits"