When you display a property next to the connection line in the drawing, it will automatically appear on the print.
Refer Connections > Display Formats - Manage Display Formats of the Library Manager Help.