Play when one should be working. Act with abandon. Goofing off implies that one has responsibilities but they are being ignored in order to have fun. (Compare to Fool around.)
“I asked my son to clean the garage but instead he was goofing off with his friends.”