Not sure if I understand correctly, but this seems to do what you are
looking for

hash.each do |key, value|
  printf "%-12s %10s\n", "#{key}:", value
end

Max field widths may be computed for arbitrary hashes.

-- fxn

PD: Note that I use printf, format is the same as sprintf, but you print the
formatted string directly, as in C.