parameter passing to \verb|| environment

I happen to write the following code over and over again.

{\color{blue}\verb|>|} {\footnotesize\verb|HI|}


So, I came up with the following code to make it a command.

\newcommand{\result}[2]{%
{\color{#1}\verb|>|} {\footnotesize\verb|#2|}
}



\end{document}

-