I think there’s not such macro, but should be fairly easy to add. Btw you could figure that information already from audits I think, but if I understand correctly, you want to store that information on target host.
Thanks, so I will open an issue, because I need the information on the target host so a administrator can easily get why, when and by whom the puppet agent was disabled without requiring access to Foreman.