Select a conversation with the message you want to edit.
Control-click the message, then choose Edit (or press Command-E).
Make any changes, then press Return.
The message is marked as Edited in the Delete messages and conversations in Messages on Mac