In the case of ligma, when someone uses ligma, the goal is to get another person to ask “What’s ligma?” The response is something along the lines of “ligma balls,” with ligma meant to sound like “lick my.” It’s based on other jokes that feature an unusual word that sets a person up for a silly, often vulgar punchline, e.g., updog or deez nuts.