Feature idea: Parameterized macros (or, "smart replacements")

Not with parameters, but, try

Admin → Customize → Watched Words → Replace