Ruby_sprintf_compiler is a project mainly written in Ruby, it's free.
Compiles sprintf formats to Ruby code.