Look to the top-left corner of your screen. You will see a speech bubble icon there, and clicking it opens the list of available chat phrases.
Pick whichever line fits, and it appears above your avatar for nearby players to read. It is a handy option when you would rather not type, or when you are playing somewhere that restricts free-form chat.