Identify if proc B’s caller is proc A

Is there any way I can know, each time procedure B runs, if it was called by procedure A?

I don’t want to use context_info because it might be used by other procs in the call stack, and I want to avoid SESSION_CONTEXT (althought it seems the better solution) because many of my clients have versions <2016.