Kernel?.format, Kernel?.sprintf (Ruby 4.0 リファレンスマニュアル)

format 文字列を C 言語の sprintf と同じように解釈し、引数をフォーマットした文字列を返します。