Here is a macro for displaying messages to status window. It shows the contents of the comment between ( and ). You can print variables with the format #nnn or #Fnnn, where nnn is the number of the variable, F stands for formatted to 4 decimals. See screenshot below: