import inspect


def f(a, b):
    frame = inspect.currentframe()
    print(frame.f_locals, type(frame.f_locals))
    return a + b


print(f(1, 2))