method

printf

printf(s, *args)
public

Formats and writes to the stream converting parameters under control of the format string.

See Kernel#sprintf for format string details.