'Print the call signature for any callable object.
The debugger interface to %pdef'

def do_pdef(self, arg):

    namespaces = [('Locals', self.curframe.f_locals), ('Globals', self.curframe.f_globals)]
    self.shell.find_line_magic('pdef')(arg, namespaces=namespaces)
