There's no feature for printing out text messages built into an Android phone, but some workarounds exist. For example, you can copy and paste the text into a document and print the document. You can also share the text to Google Drive and print it from there.