Debug.Log Extensions
Documentation (1.1.9)

◆ Log() [13/21]

static void Debug.Log ( [NotNull] string  prefix,
[NotNull] params Expression< Func< object >>[]  classMembers 

Logs a message to the Console consisting of a prefix text string followed by the names and values of classMembers zero or more class members.

public IEnumerator PlaySound(float delay, AudioId audioId) { Debug.Log("[Audio] Playing delayed - ", ()=>delay, ()=>audioId);

yield return new WaitForSeconds(delay);

audioController.Play(soundId); }

prefixPrefix text for the message.
classMembersExpressions pointing to class members whose names and values will be included in the message.