The correct sentence that contains a subject that is compound in form but singular in meaning is:
A can of frank and beans is my favorite dinner.
In this sentence, "a can" is the main subject, which is singular, even though "frank and beans" are plural. The phrase "of frank and beans" acts as a prepositional phrase modifying "can."