if you wanted to type it manually, then in the input box at the bottom of a channel window or the status window, type:
//echo <whatever here>
the double slashes are required otherwise it wouldn't evaluate anything after the echo
If you want to put it in code, look at /help Aliases