Ricky appears in The Cigar Store Indian when Elaine is travelling on the subway. He is infatuated with her, and offers her help with the TV guide by offering her a highlighter.
She is creeped out by him, and leaves in a rush, leaving the TV Guide. Ricky cuts them up and makes them into a bouquet of flowers for Elaine, which he delivers to the address on the TV Guide (Frank's house in Queens).
In The Pie Ricky appears briefly at the end where it is revealed he has been designing mannequins that resemble Elaine which are distributed to stores all over New York and Chicago.
* Scrubs