I really love the .NET String.Format function, and you can use the SQL FORMATMESSAGE function to achieve the same thing.
Copy the code below into SQL and run it so see all the possibilities