Implement a generic version of `-methodSignatureForSelector:`