A device and a method for bagging a fruit or a vegetable on a tree, the device includes two arms of a hoop shape profile to which are provided spaced apart fasteners on inner surfaces thereof. A bag at its opening periphery can be releasably mounted to the two arms through the fasteners. The bag has a drawstring with a lock, wherein the lock is immobilized in a cutout provided in the device and a leading end of the drawstring passing through the lock can extend further. A loop of the leading end of the drawstring is hooked to a hook that is coupled to a cord. The cord can be pulled to tighten the drawstring and thus the opening of the bag.