Scarabs run away extremely fast upon spotting the player, so the best option is to use ranged weapons. Players' main goal when hunting this creature is to one-shot it to avoid a chase, so a Spicy Staff is a great option due to its weakness to all elements and the staves long range.